﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="LinkManager.ascx.cs"
    Inherits="NCS.Module.LinkSite.Admin.LinkManager" %>
    <%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:Label ID="lblUpdateStatus" runat="server"></asp:Label>
<table border="0" cellpadding="0" cellspacing="0" width="700">
    <tr>
        <td><b>Nhóm liên kết: </b></td>
        <td><asp:DropDownList ID="dropCatalogWebLink" runat="server" DataTextField="TitleName"
                AutoPostBack="true" DataValueField="IDTitle" OnSelectedIndexChanged="dropCatalogWebLink_SelectedIndexChanged">
            </asp:DropDownList><asp:HiddenField ID="hiddenid" runat="server" /></td>
    </tr>
    <tr>
	    <td width="15%"><b>Tên</b></td>
	    <td>
		    <asp:TextBox Width="100%" runat="server" ID="txtName"></asp:TextBox></td>
    </tr>
    <tr>
	    <td>
		    <b>Trỏ tới</b></td>
	    <td>
		    <asp:TextBox Width="100%" runat="server" ID="txtTarget"></asp:TextBox></td>
    </tr>
    <tr>
	    <td>
		    <b>Mô tả</b></td>
	    <td>
		    <asp:TextBox Width="100%" TextMode="MultiLine" runat="server" ID="txtDescription"></asp:TextBox></td>
    </tr>
    <tr>
        <td align="center" class="TextBox_Input" colspan="2">
                <asp:Button ID="btnAddNew" runat="server" CssClass="Button"  Text="Thêm" Width="62px" OnClick="btnAddNew_Click" />
                <asp:Button ID="btnUpdate" runat="server" CssClass="Button" Visible="false" Text="Cập nhật" Width="62px" OnClick="btnUpdate_Click" />
                <asp:Button ID="btnCancel" runat="server" CssClass="Button"  Text="Hủy" Width="62px" OnClick="btnCancel_Click" />
        </td>
    </tr>
     <tr>
        <td height="5" colspan="2">
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:GridView OnRowDataBound="grvEmployment_RowDataBound" ID="grvEmployment" runat="server"
            AllowPaging="True" AutoGenerateColumns="False" Width="100%" PageSize="20" CellPadding="4"
            ForeColor="#333333" GridLines="None" OnRowCommand="grvEmployment_RowCommand" OnRowDeleting="grvEmployment_RowDeleting" OnRowEditing="grvEmployment_RowEditing">
            <PagerSettings PageButtonCount="20" Position="TopAndBottom" />
            <Columns>
                <asp:TemplateField HeaderText="&#160;&#160;&#160;STT">
                    <ItemTemplate>
                        &nbsp;&nbsp;&nbsp;<asp:Label ID="lblSTT" runat="server" Font-Bold="true"></asp:Label>
                    </ItemTemplate>
                    <ItemStyle Height="25px" HorizontalAlign="Left" VerticalAlign="Middle" Width="10%" />
                    <HeaderStyle Height="30px" HorizontalAlign="Left" VerticalAlign="Middle" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="&#160;&#160;&#160;Name">
                    <ItemTemplate>
                        &nbsp;&nbsp;&nbsp;<asp:Label ID="lblName" runat="server" Font-Bold="true"></asp:Label>
                    </ItemTemplate>
                    <ItemStyle Height="25px" HorizontalAlign="Left" VerticalAlign="Middle" Width="75%" />
                    <HeaderStyle Height="30px" HorizontalAlign="Left" VerticalAlign="Middle" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="&#160;&#160;&#160;Thao tác">
                    <ItemTemplate>
                        <asp:ImageButton ID="btnEdit" ImageUrl="/Administrator/Images/GridView/edit.gif"
                            runat="server" CommandArgument='<%# Eval("Link_ID") %>' CommandName="edit" ToolTip="Sửa" />
                        &nbsp;
                        <asp:ImageButton ID="btnDelete" ImageUrl="/Administrator/Images/GridView/delete.gif"
                            runat="server" CommandArgument='<%# Eval("Link_ID") %>' CommandName="delete" ToolTip="Xóa" />
                    </ItemTemplate>
                    <ItemStyle Height="25px" HorizontalAlign="Left" VerticalAlign="Middle" Width="15%" />
                    <HeaderStyle Height="30px" HorizontalAlign="Left" VerticalAlign="Middle" />
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <EditRowStyle BackColor="#999999" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        </asp:GridView>
        </td>
    </tr>  
    
</table>
